@echo off
rem 

setlocal

rem TPR is short for TC_PORTAL_ROOT to reduce command line length
title Teamcenter Rich Client

call "C:\TC\Siemens\Teamcenter11\install\tem_init.bat"

set TPR=C:\TC\Siemens\Teamcenter11\portal
if not defined FMS_HOME set FMS_HOME=C:\TC\Siemens\Teamcenter11\tccs

rem use AUX_PATH env var for any additional required paths
rem save original path for external applications
set ORIGINAL_PATH=%PATH%
rem for optimal startup performance, keep the PATH length at a minimum
set PATH=%SYSTEMROOT%\system32;%FMS_HOME%\bin;%FMS_HOME%\lib;%TPR%;%AUX_PATH%

set JAVA_HOME=%TC_JRE_HOME%
set JRE_HOME=%TC_JRE_HOME%

start "TAO ImR" /min cmd /c "C:\TC\Siemens\Teamcenter11\iiopservers\start_imr.bat"

:start_portal
cd /d %TPR%
set CLASSPATH=.;
set VM_XMX=1024m
